package com.jinboe.cms.dao.impl;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import com.jinboe.cms.dao.SysDdicDao;
import com.jinboe.cms.dto.DdicDto;
import com.jinboe.comm.dao.impl.BaseDaoImpl;

public class SysDdicDaoImpl extends BaseDaoImpl implements SysDdicDao{
	private String queryDdicSql="select * from sys_ddic where 1=1  ";
	public List<DdicDto> queryAllDdicList(){
		List<DdicDto> ddicList=new ArrayList();
		List queryList = getJdbcTemplate().queryForList(queryDdicSql);
		Iterator iterator = queryList.iterator();
		while (iterator.hasNext()) {
			Map queryIteratorMap = (Map) iterator.next();
			DdicDto orderItemDto=new DdicDto();
			createDto(orderItemDto, queryIteratorMap);
			ddicList.add(orderItemDto);
		}
		return ddicList;
	}
}
